package com.bdqn.ch05.sz.sz1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("Spring-config.xml");
        LuFeiSpring luFeiSpring = (LuFeiSpring) context.getBean("luFei");
        luFeiSpring.show();
        ZhuGeSpring zhuGeSpring = (ZhuGeSpring) context.getBean("zhuGe");
        zhuGeSpring.show2();
    }
}
